#ifndef CSV_ROW_TEST_HPP
#define CSV_ROW_TEST_HPP

#include <gtest/gtest.h>
#include "CsvRow.h"

TEST(TestCsvRow, TestLoading)
{
  std::istringstream stream;
  stream.str("one one|two one|three one\none two|two two|three two\n");

  CsvRow row;
  stream >> row;
  ASSERT_EQ("two one", row[1]);
  stream >> row;
  ASSERT_EQ("three two", row[2]);
}

#endif // CSV_ROW_TEST_HPP